/ BBS in a Box 15
/ BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutSDec.c ![]() | < prev | next > |
MacBinary | 1994-06-12 | 1.0 KB | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Sun Jun 12 15:08:18 1994, modified Sun Jun 12 15:08:18 1994, creator Think C, type ASCII, 386 bytes "PutSDec.c" , at 0x202 382 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 50 75 74 53 44 65 | 63 2e 63 00 00 00 00 00 |..PutSDe|c.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 01 82 00 | 00 01 7e aa 21 0d a2 aa |........|..~.!...|
|00000060| 21 0d a2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |!.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3d 7d 00 00 |........|....=}..|
|00000080| 76 6f 69 64 20 50 75 74 | 43 68 61 72 28 63 68 61 |void Put|Char(cha|
|00000090| 72 20 63 29 3b 0d 76 6f | 69 64 20 50 75 74 54 65 |r c);.vo|id PutTe|
|000000a0| 78 74 28 63 6f 6e 73 74 | 20 63 68 61 72 2a 20 73 |xt(const| char* s|
|000000b0| 2c 20 69 6e 74 20 6c 65 | 6e 20 29 3b 0d 76 6f 69 |, int le|n );.voi|
|000000c0| 64 20 5f 5f 44 65 63 54 | 6f 54 65 78 74 20 28 75 |d __DecT|oText (u|
|000000d0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 64 65 63 |nsigned |long dec|
|000000e0| 2c 20 63 68 61 72 2a 20 | 73 74 72 20 29 3b 0d 0d |, char* |str );..|
|000000f0| 76 6f 69 64 20 50 75 74 | 53 44 65 63 28 73 69 67 |void Put|SDec(sig|
|00000100| 6e 65 64 20 6c 6f 6e 67 | 20 69 29 0d 7b 0d 09 09 |ned long| i).{...|
|00000110| 42 6f 6f 6c 65 61 6e 09 | 20 69 73 4e 65 67 3b 0d |Boolean.| isNeg;.|
|00000120| 09 09 69 6e 74 09 09 20 | 6e 20 3d 20 30 3b 0d 09 |..int.. |n = 0;..|
|00000130| 09 63 68 61 72 2a 09 20 | 73 74 72 20 3d 20 22 30 |.char*. |str = "0|
|00000140| 30 30 30 30 30 30 30 30 | 30 22 3b 0d 09 0d 09 69 |00000000|0";....i|
|00000150| 66 20 28 20 69 73 4e 65 | 67 20 3d 20 28 20 69 20 |f ( isNe|g = ( i |
|00000160| 3c 20 30 20 29 20 29 0d | 09 09 69 20 3d 20 2d 69 |< 0 ) ).|..i = -i|
|00000170| 3b 0d 09 0d 09 5f 5f 44 | 65 63 54 6f 54 65 78 74 |;....__D|ecToText|
|00000180| 20 28 69 2c 20 73 74 72 | 20 29 3b 0d 09 0d 09 77 | (i, str| );....w|
|00000190| 68 69 6c 65 20 28 20 73 | 74 72 5b 6e 5d 20 3d 3d |hile ( s|tr[n] ==|
|000001a0| 20 27 30 27 20 26 26 20 | 6e 3c 39 20 29 0d 09 09 | '0' && |n<9 )...|
|000001b0| 6e 2b 2b 3b 0d 09 0d 09 | 50 75 74 43 68 61 72 28 |n++;....|PutChar(|
|000001c0| 20 27 23 27 20 29 3b 0d | 09 69 66 20 28 20 69 73 | '#' );.|.if ( is|
|000001d0| 4e 65 67 20 29 20 50 75 | 74 43 68 61 72 28 20 27 |Neg ) Pu|tChar( '|
|000001e0| 2d 27 20 29 3b 0d 09 50 | 75 74 54 65 78 74 28 20 |-' );..P|utText( |
|000001f0| 26 73 74 72 5b 6e 5d 2c | 20 31 30 2d 6e 20 29 3b |&str[n],| 10-n );|
|00000200| 0d 7d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 09 50 75 74 53 44 65 63 | 2e 63 02 00 02 00 54 45 |.PutSDec|.c....TE|
|000002c0| 58 54 4b 41 48 4c 00 00 | 00 00 00 00 00 00 00 00 |XTKAHL..|........|
|000002d0| 02 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 aa 20 c7 49 00 00 | 01 82 00 00 01 7e 00 00 |... .I..|.....~..|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 05 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|000003b0| 02 7d 00 52 00 3c 01 dc | 02 6c aa 20 c7 52 00 00 |.}.R.<..|.l. .R..|
|000003c0| 01 82 00 00 01 82 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|000003d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 82 48 50 |...L...L|...2..HP|
|000003e0| 12 5e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.^.....2|..MPSR..|
|000003f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 82 46 d8 00 00 |........|....F...|
+--------+-------------------------+-------------------------+--------+--------+